package com.nwork.qingmanhua.tasks;

import com.nwork.qingmanhua.model.CategoryModel;
import com.nwork.qingmanhua.test.TestModel;

import org.json.JSONArray;
import org.json.JSONObject;

/**
 * Created by LGH on 2015/3/23.
 */
public class CategoryTask extends BaseTask {
    private CategoryModel categoryModel;
    public CategoryTask () {
        entry = categoryModel = new CategoryModel();
    }

    @Override
    protected void parseJsonObject (JSONObject object) {
        /*try {
            JSONObject jsonObject = new JSONObject(jsonCategory);
            JSONArray jsonArray = jsonObject.getJSONArray("comic_tag_arr");
            categoryList = new ArrayList<>();
            for (int i = 0; i < jsonArray.length(); i++) {
                JSONObject jsonEntry = jsonArray.getJSONObject(i);
                Gson gson = new Gson();
                Category category = gson.fromJson(jsonEntry.toString(), Category.class);
                categoryList.add(category);
            }
        } catch (JSONException e) {
            e.printStackTrace();
        }*/
    }

    @Override
    protected void parseJsonArray (JSONArray array) {

    }

    @Override
    protected String getUrl () {
        return null;
    }
}
